home *** CD-ROM | disk | FTP | other *** search
/ Champak 120 / Vol 120.iso / games / anacroz.swf / scripts / DefineSprite_1549 / frame_1 / DoAction.as < prev   
Encoding:
Text File  |  2010-11-09  |  569 b   |  22 lines

  1. if(this.onPress == undefined)
  2. {
  3.    this.onPress = function()
  4.    {
  5.       if(tropa1.soldados[_root.selecionado].getPM() >= _root.mg_valores[_currentframe - 2][3])
  6.       {
  7.          if(!_root.magiaAtiva)
  8.          {
  9.             _root.attachMovie("alvo","alvo2",1000000);
  10.             _root.alvo2.startDrag(true,10,70,740,500);
  11.             Mouse.hide();
  12.             _root.magiaAtiva = true;
  13.             _root.magia_sel = _currentframe - 2;
  14.          }
  15.          else
  16.          {
  17.             _root.aviso("N├úo h├í PM suficiente!");
  18.          }
  19.       }
  20.    };
  21. }
  22.